<?php

class galleries_model extends MY_Model {

    function __construct() {
        parent::__construct();
        $this->table = 'galleries';
    }

    function  find_by_id($ID){
        $q = "
		SELECT *
		FROM $this->table
		WHERE ID = $ID
		";

        $res = $this->db->query($q)->row_array();
        return $res;
        //SELECT * FROM orders LEFT JOIN suppliers ON orders.supplier_ID = suppliers.ID WHERE supplier_ID = 1
    }

}

?>
